import axios from 'axios';

let base='' ;
var qs = require('qs');


//用户登陆
export const requestLogin = params => { return axios.post('/api/admin/login', qs.stringify(params)).then(res => res.data); };
export const requestLogout = params => { return axios.post('/api/admin/logout', qs.stringify(params)).then(res => res.data); };
export const queryterInfo = params => { return axios.post('/api/admin/queryterInfo', qs.stringify(params)).then(res => res.data); };

//课程管理
//添加课程
export const coursemanageAdd = params => { return axios.post('/api/admin/coursemanageAdd', qs.stringify(params)).then(res => res.data); };
//根据id删除课程
export const coursemanageDel = params => { return axios.post('/api/admin/coursemanageDel', qs.stringify(params)).then(res => res.data); };
//课程模糊查询分页
export const coursemanageFy = params => { return axios.post('/api/admin/coursemanageFy', qs.stringify(params)).then(res => res.data); };
//根据id查询课程
export const coursemanageSel = params => { return axios.post('/api/admin/coursemanageSel', qs.stringify(params)).then(res => res.data); };
//修改课程
export const coursemanageUp = params => { return axios.post('/api/admin/coursemanageUp', qs.stringify(params)).then(res => res.data); };


//专业管理
//查询所有专业
export const majormanageAll = params => { return axios.post('/api/admin/majormanageAll', qs.stringify(params)).then(res => res.data); };

//添加专业信息
export const majormanageAdd = params => { return axios.post('/api/admin/majormanageAdd', qs.stringify(params)).then(res => res.data); };
//管理删除专业信息
export const majormanageDel = params => { return axios.post('/api/admin/majormanageDel', qs.stringify(params)).then(res => res.data); };
//获取专业列表和分页
export const majormanageFy = params => { return axios.post('/api/admin/majormanageFy', qs.stringify(params)).then(res => res.data); };
//修改专业信息
export const majormanageUp = params => { return axios.post('/api/admin/majormanageUp', qs.stringify(params)).then(res => res.data); };

export const majormanageSel = params => { return axios.post('/api/admin/majormanageSel', qs.stringify(params)).then(res => res.data); };



//公告管理
//添加公告
export const noticemanageAdd = params => { return axios.post('/api/admin/noticemanageAdd', qs.stringify(params)).then(res => res.data); };
//根究主键删除公告
export const noticemanageDel = params => { return axios.post('/api/admin/noticemanageDel', qs.stringify(params)).then(res => res.data); };
//公告模糊查询分页
export const noticemanageFy = params => { return axios.post('/api/admin/noticemanageFy', qs.stringify(params)).then(res => res.data); };
//根据主键查询公告
export const noticemanageSel = params => { return axios.post('/api/admin/noticemanageSel', qs.stringify(params)).then(res => res.data); };
//修改公告
export const noticemanageUp = params => { return axios.post('/api/admin/noticemanageUp', qs.stringify(params)).then(res => res.data); };


//学生信息管理
//添加学生信息
export const StudentmanageAdd = params => { return axios.post('/api/admin/StudentmanageAdd', qs.stringify(params)).then(res => res.data); };
//删除学生信息
export const StudentmanageDel = params => { return axios.post('/api/admin/StudentmanageDel', qs.stringify(params)).then(res => res.data); };
//查询学生信息列表分页
export const StudentmanageFy = params => { return axios.post('/api/admin/StudentmanageFy', qs.stringify(params)).then(res => res.data); };
//查询学生信息
export const StudentmanageSel = params => { return axios.post('/api/admin/StudentmanageSel', qs.stringify(params)).then(res => res.data); };
//修改学生信息
export const StudentmanageUp = params => { return axios.post('/api/admin/StudentmanageUp', qs.stringify(params)).then(res => res.data); };


//教师管理
//添加教师信息
export const TeachermanageAdd = params => { return axios.post('/api/admin/TeachermanageAdd', qs.stringify(params)).then(res => res.data); };
//删除教师信息
export const TeachermanageDel = params => { return axios.post('/api/admin/TeachermanageDel', qs.stringify(params)).then(res => res.data); };
//查询教师信息
export const TeachermanageSel = params => { return axios.post('/api/admin/TeachermanageSel', qs.stringify(params)).then(res => res.data); };
//修改教师信息
export const TeachermanageUp = params => { return axios.post('/api/admin/TeachermanageUp', qs.stringify(params)).then(res => res.data); };
//查询教师列表分页
export const TeachermanageFy = params => { return axios.post('/api/admin/TeachermanageFy', qs.stringify(params)).then(res => res.data); };
//修改教师权限
export const TeachermanageQx = params => { return axios.post('/api/admin/TeachermanageQx', qs.stringify(params)).then(res => res.data); };


//学生论文管理
//添加学生论文
export const papermanageAdd = params => { return axios.post('/api/admin/papermanageAdd', qs.stringify(params)).then(res => res.data); };
//根据主键删除学生论文
export const papermanageDel = params => { return axios.post('/api/admin/papermanageDel', qs.stringify(params)).then(res => res.data); };
//模糊查询论文列表分页
export const papermanageFy = params => { return axios.post('/api/admin/papermanageFy', qs.stringify(params)).then(res => res.data); };
//根据主键查询论文信息
export const papermanageSel = params => { return axios.post('/api/admin/papermanageSel', qs.stringify(params)).then(res => res.data); };
//修改论文信息
export const papermanageUp = params => { return axios.post('/api/admin/papermanageUp', qs.stringify(params)).then(res => res.data); };


//教师论文发布管理
//教师上传论文规范
export const uploadThesisLayout = params => { return axios.post('/api/admin/uploadThesisLayout', qs.stringify(params)).then(res => res.data); };

//添加教师论文规范
export const ThesisLayoutmanageAdd = params => { return axios.post('/api/admin/ThesisLayoutmanageAdd', qs.stringify(params)).then(res => res.data); };
//根据id删除教师论文规范
export const ThesisLayoutmanageDel = params => { return axios.post('/api/admin/ThesisLayoutmanageDel', qs.stringify(params)).then(res => res.data); };
//模糊查询教师论文规范分页
export const ThesisLayoutmanageFy = params => { return axios.post('/api/admin/ThesisLayoutmanageFy', qs.stringify(params)).then(res => res.data); };
//根据主键查询教师论文规范
export const ThesisLayoutmanageSel = params => { return axios.post('/api/admin/ThesisLayoutmanageSel', qs.stringify(params)).then(res => res.data); };
//跟新教师论文规范
export const ThesisLayoutmanageUp = params => { return axios.post('/api/admin/ThesisLayoutmanageUp', qs.stringify(params)).then(res => res.data); };


//审核管理
//学生异动申请 审核 修改状态
export const QueryStudentUp = params => { return axios.post('/api/admin/QueryStudentUp', qs.stringify(params)).then(res => res.data); };
//学生缴费 审核
export const queryMoney = params => { return axios.post('/api/admin/queryMoney', qs.stringify(params)).then(res => res.data); };
//学生异动 分页
export const queryStudentFy = params => { return axios.post('/api/admin/queryStudentFy', qs.stringify(params)).then(res => res.data); };
//学生异动 详情
export const queryStudentMessage = params => { return axios.post('/api/admin/queryStudentMessage', qs.stringify(params)).then(res => res.data); };

//教学计划
//添加教学计划
export const educationAdd = params => { return axios.post('/api/admin/educationAdd', qs.stringify(params)).then(res => res.data); };
//教学计划分页
export const educationFy = params => { return axios.post('/api/admin/educationFy', qs.stringify(params)).then(res => res.data); };
//根据id查询教学计划
export const educationSel = params => { return axios.post('/api/admin/educationSel', qs.stringify(params)).then(res => res.data); };
//根据id修改课程
export const educationUp = params => { return axios.post('/api/admin/educationUp', qs.stringify(params)).then(res => res.data); };
//根据id删除课程
export const educationDel = params => { return axios.post('/api/admin/educationDel', qs.stringify(params)).then(res => res.data); };


// 报名审核
// 查询报名学生
export const queryEnterFy = params => { return axios.post('/api/admin/queryEnterFy', qs.stringify(params)).then(res => res.data); };
//审核报名
export const queryEnterUp = params => { return axios.post('/api/admin/queryEnterUp', qs.stringify(params)).then(res => res.data); };


//招生计划
//添加招生计划信息
export const StudentPlanAdd = params => { return axios.post('/api/admin/StudentPlanAdd', qs.stringify(params)).then(res => res.data); };
//删除招生计划信息
export const StudentPlanDel = params => { return axios.post('/api/admin/StudentPlanDel', qs.stringify(params)).then(res => res.data); };
//修改招生计划信息
export const StudentPlanUp = params => { return axios.post('/api/admin/StudentPlanUp', qs.stringify(params)).then(res => res.data); };
//查询招生计划信息  分页
export const StudentPlanFy = params => { return axios.post('/api/admin/StudentPlanFy', qs.stringify(params)).then(res => res.data); };
//根据主键查询招生计划信息
export const StudentPlanSel = params => { return axios.post('/api/admin/StudentPlanSel', qs.stringify(params)).then(res => res.data); };
